package com.kikikeji.weizhuo.activity.launchersetting;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;

import com.kikikeji.weizhuo.R;
import com.kikikeji.weizhuo.activity.core.BaseCoreMVPActivity;

public class LauncherSettingsActivity extends BaseCoreMVPActivity<SettingPresenter,SettingUI> implements SettingUI {

    @Override
    protected SettingPresenter createPresenter() {
        return new SettingPresenter();
    }

    @Override
    protected SettingUI getUi() {
        return this;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_launcher_settings);
        Toolbar toolbar = mViewFinder.find(R.id.toolbar);
        toolbar.setTitle(getString(R.string.settings_button_text));
        toolbar.setNavigationIcon(getResources().getDrawable(R.drawable.ic_arrow_back_grey));
    }
}
